package com.bestdreamer.thread_synchronized;

public class Demo3Run {

    public static void main(String[] args) {
        Demo3Service service = new Demo3Service();
        Demo3ThreadA threadA = new Demo3ThreadA(service);
        threadA.setName("A");
        threadA.start();
        Demo3ThreadB threadB = new Demo3ThreadB(service);
        threadB.setName("B");
        threadB.start();
    }
}